<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false"
         trimDirectiveWhitespaces="true" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:if test="${not poll and empty param.partial}">
    <jsp:include page="../header.jsp"/>
</c:if>

<h1 class="wi">${currentUser.nick_name}的微博</h1>
<div class="W_rightModule">
    <ul class="user_atten clearfix ">
        <c:if test="${show}"><li><c:out value="${followtype}" /></li></c:if>
        <c:if test="${needFollow}"> <li><a href="<c:url value="/user/follow/${currentUser.user_id}" />">关注</a></li></c:if>
        <c:if test="${cancelFollow}"> <li><a href="<c:url value="/user/cancelfollow/${currentUser.user_id}" />">取消关注</a></li></c:if>
		<li><a href="<c:url value="/user/user_list/1/${currentUser.user_id}" />"><strong node-type="follow"><c:out value="${following}"/></strong><span>关注</span></a></li>
		<li><a href="<c:url value="/user/user_list/0/${currentUser.user_id}" />"><strong node-type="fans"><c:out value="${followed}"/></strong><span>粉丝</span></a></li>
		<li><a href="<c:url value="/user/user_info/${currentUser.user_id}" />"><strong node-type="weibo"><c:out value="${statuscount}"/></strong><span>微博</span></a></li>
    </ul>
</div><br/>
<form action="<c:url value="/user/publish" />" method="POST">
<div class="send_weibo" node-type="wrap">
    <div><textarea style="height: 55px;width: 540px;" node-type="textEl" name="text" title="微博输入框" tabindex="1"></textarea></div>
    <div class="btn"><input type="submit" name="" value="发布"/></div>
</div>
</form>
<div class="W_main_c">
    <div class="feed_lists" node-type="feed_list">
        <c:forEach items="${countedStatusList}" var="status">
            <dl class="feed_list feed ">
                <dd class="content">
                    <dl class="comment">
                        <a href="<c:url value="/user/user_info/${status.status.user_id}" />">
                            <c:out value="${status.status.user_name}"/></a>:
                        <em><c:out value="${status.status.text}"/></em>
                        </dt>
                        <dd><span><c:if test="${status.status.user_id eq user.user_id}"><a href="<c:url value="/user/user_info_${currentUser.user_id}/delete/${status.status.status_id}"/>">删除</a></c:if> <a href="<c:url value="/user/user_info_${currentUser.user_id}/retweet/0/${status.status.status_id}?text=转发微博"/>">转发</a>(<c:out value="${status.count.retweet_count}"/>)<i class="W_vline">|</i><a href="<c:url value="/user/status_info/${status.status.status_id}"/>" >评论</a>(<c:out value="${status.count.comment_count}"/>) </span><c:out value="${status.status.pubtime}"/>
                        </dd>
                    </dl>
                </dd>
                <dd class="clear"></dd>
            </dl>
        </c:forEach>
    </div>
</div>
<c:if test="${not poll and empty param.partial}">
    <jsp:include page="../footer.jsp"/>
</c:if>

